﻿<Page x:Class="WPF_DbCenter.SqlServer.SqlServerMain"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="SqlServerMain" Height="466" Width="639" Background="{DynamicResource MainWindowBackgroundBrush}">
    <Grid Height="469" Width="640">
        <TextBox Margin="143,30,33,0" Name="textBox1" Height="99" VerticalAlignment="Top" />
        <Button Margin="0,142,33,0" Name="butConnect" HorizontalAlignment="Right" Width="75" Click="butConnect_Click" Height="25" VerticalAlignment="Top">Connect</Button>
        <Label Height="28" HorizontalAlignment="Left" Margin="16,30,0,0" Name="label1" VerticalAlignment="Top" Width="120">Connection String</Label>
        <Button Height="23" HorizontalAlignment="Left" Margin="32,66,0,0" Name="button1" VerticalAlignment="Top" Width="75" Click="button1_Click">Test Str</Button>
        <Button Height="23" HorizontalAlignment="Left" Margin="32,104,0,0" Name="button2" VerticalAlignment="Top" Width="75" Click="button2_Click">Test Str2</Button>
        <Button Height="25" HorizontalAlignment="Right" Margin="0,0,33,21.909" Name="button3" VerticalAlignment="Bottom" Width="75" Click="butOpenSqlServerWithPara_Click">Connect</Button>
        <my:SqlServerLoginControl Margin="143,198.953,160,19" Name="sqlServerLoginControl1" xmlns:my="clr-namespace:WPFCommonControl;assembly=WPFCommonControl" />
        <Button Height="25" Margin="143,140,313,0" Name="button4" VerticalAlignment="Top" Click="button4_Click">Connection String Help</Button>
        <Button Height="23" HorizontalAlignment="Left" Margin="31,198.953,0,0" Name="button5" VerticalAlignment="Top" Width="75" Click="button5_Click">DebugMode</Button>
        <Button Height="25" Foreground="Coral"  Margin="143,171,313,0" Name="butEnumSqlServer" Click="butEnumSqlserver_Click" VerticalAlignment="Top">
            <Button.Content>
                <TextBlock Text="Enum Sql server"></TextBlock>
            </Button.Content>
            <Button.ToolTip>
                <StackPanel>
                    <TextBlock Text="枚举安装的SQLSERVER服务"></TextBlock>
                    <Line Stroke="Blue" StrokeThickness="4"></Line>
                    <TextBlock Text="这个功能可能需要您等待一段时间"></TextBlock>
                </StackPanel>
            </Button.ToolTip>
        </Button>
    </Grid>
</Page>
